<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">

							<div class="form-group">
								<label class="col-sm-3 control-label">姓名：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">用户名：</label>
								<div class="col-sm-8">
									<input id="username" name="username" class="form-control"
										   type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">密码：</label>
								<div class="col-sm-8">
									<input id="password" name="password" class="form-control"
										   type="password">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">E-mail：</label>
								<div class="col-sm-8">
									<input id="email" name="email" class="form-control"
										   type="email">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">省市区：</label>
								<div class="col-sm-8" id="target">
									<select name="province"></select>
									<select name="city"></select>
									<select name="district"></select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">详细地址：</label>
								<div class="col-sm-8">
									<input id="address" name="address" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">
								<label class="col-sm-3 control-label">产品标识：</label>
								<div class="col-sm-8">
									<input id="productIdent" name="productIdent" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">商户名称：</label>
								<div class="col-sm-8">
									<input id="merchantName" name="merchantName" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">联系人：</label>
								<div class="col-sm-8">
									<input id="linkman" name="linkman" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">电话：</label>
								<div class="col-sm-8">
									<input id="tel" name="tel" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">公司地址：</label>
								<div class="col-sm-8">
									<input id="merchantAddress" name="merchantAddress" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">大码匹配规则：</label>
								<div class="col-sm-8">
									<input id="bigCodeConfig" name="bigCodeConfig" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">小码匹配规则：</label>
								<div class="col-sm-8">
									<input id="smallCodeConfig" name="smallCodeConfig" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">产品码匹配规则：</label>
								<div class="col-sm-8">
									<input id="codeConfig" name="codeConfig" class="form-control" type="text">
								</div>
							</div>
							<!--<div class="form-group">-->
								<!--<label class="col-sm-3 control-label">注册时间：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createDate" name="createDate" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">商户公司简介：</label>
								<div class="col-sm-8">
									<div id="editor" name="editor">

									</div>
									<input id="introduce" name="introduce" class="form-control" type="hidden">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">商户logo：</label>
								<div class="col-sm-8">
									<input id="file" name="file" class="form-control" type="file">
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/merchant/merchant/add.js" th:src="@{/js/appjs/merchant/merchant/add.js}">
	</script>

	<script type="text/javascript">
        $('#target').distpicker();

        var E = window.wangEditor
        var editor = new E('#editor')
        editor.customConfig.menus = [
            'head',  // 标题
            'bold',  // 粗体
            'fontSize',  // 字号
            'fontName',  // 字体
            'italic',  // 斜体
            'underline',  // 下划线
            'strikeThrough',  // 删除线
            'foreColor',  // 文字颜色
            'backColor',  // 背景颜色
            'link',  // 插入链接
            'list',  // 列表
            'justify',  // 对齐方式
//            'quote',  // 引用
            'image',  // 插入图片
            'table',  // 表格
        ]
        editor.customConfig.uploadImgServer = ctx+'/common/sysFile/uploadOss'
        editor.create()

        function setIntroduce() {
            var log = editor.txt.html()
            $("#introduce").val(log)
        }
	</script>
</body>
</html>
